import { getUserInfo } from "../api/home"

const actions = {
    getUserinfo(store) {
        return getUserInfo().then(({ data: res }) => {
            
            store.commit('setMenuList',res.data.menuList)

            store.commit('setUserInfo', res.data.userInfo)
            return res
        })
    }




}


export default actions
